#ifndef PWMCONTROLLER_H
#define PWMCONTROLLER_H

#include <QObject>
#include <QTimer>
#include <iostream>


class PWMController : public QObject {
    Q_OBJECT
public:
    PWMController(QObject *parent = nullptr);

    void setDutyCycle(int newDutyCycle);

private slots:
    void updatePWM();

private:
    QTimer *timer;
    int dutyCycle;
    int period;
};

#endif // PWMCONTROLLER_H
